New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppd42ns: convert pcs/0.01cf to μg/m3 to aqi #409
Conversation
The current implementation does not use the correction factors based on the presence of humidity and rain.
Hi, can you please amend your commit and sign it (you can use something like |
@chihchun I won't be able to merge these changes until you sign-off your commit. |
@chihchun Hi, Rex. You commented that humidity is required to calculate accurate PM value, but I can't find any research or material about this. Would you please share some information about that? Thanks. |
@chihchun And Why do you define the radius of PM particle 0.44 um instead of 1.25 um? |
Hi all, Conversion to mass concentration was perform under strong assumption: |
Hi guys, Any progress on this? I just stumble upon this PR trying to find a way to convert pcs/0.01cf to ug/m3. There are some experiments that are encouraging to NOT use ppd42ns for AQI calculation. "calculating the AQI from a Shinyei sensor could prove to be very arbitrary" Any thoughts? |
Hi, the original poster never signed-off on this code hence why it wasn't merged. Also, the accuracy of the conversions hasn't been tested. However, if this functionality is useful we can do a code review and add it. Personally, I would even split the AQI calculation and include it as part of the UPM utilities class since the similar HKA5 sensor module also returns ug/m3. |
It could be that the sensor from dfrobot is more accurate. Thanks for the tips @Propanu An interesting (and maybe cheaper) alternative here: https://www.hackster.io/edwios/air-quality-monitor-3f422f |
Since the author @chihchun didn't respond to the thread and add a signoff to his commit, the code from this commit was added to UPM as a part of another commit (7a60cd5), @chihchun was added as a contributor in all the files affected. The pcs2ugm3 function was added to the ppd42ns.c file and the AQI calculation function-"upm_ugm3_to_aqi" was added to the upm utilities. This PR was based on the this paper. The functions were tested and seemed to work fine, in case any changes are required they can be requested/made to the individual functions moving forward. I will keep the PR open for a few more days before closing, if anyone on this thread has any concerns then please leave a comment. |
Implemented. Closing this PR. |
The current implementation does not use the correction factors based
on the presence of humidity and rain.